// 属性配置项类型
export interface PropItem {
    type: 'string' | 'number' | 'boolean' | 'select'
    label: string
    default: any
    options?: Array<{
        label: string
        value: any
    }>
}

// 属性分组类型
export interface PropGroup {
    [key: string]: PropItem
}

// 表单项属性配置类型
export interface FormItemProps {
    base: PropGroup
    style: PropGroup
    rules: PropGroup
}

// 组件实例属性类型
export interface FormItemInstance {
    id: string
    type: string
    props: {
        base: Record<string, any>
        style: Record<string, any>
        rules: Record<string, any>
    }
} 